
* data from 0_PrepSurveyData.do
use "data/outputs/EducAlternativesAppendix.dta", clear


* labels
replace version = "Reported in paper" if regexm(version, "Baseline")
replace version = "College only for $<='73$" if regexm(version, "Tertiary")
replace version = "W/ survey weights" if regexm(version, "Weighted")


* round
foreach var of varlist estimate* {
	replace `var' = round(`var',0.1)
	}
tostring estimate*, replace force


* save
gen latex_table1 = version
foreach var of varlist estimate* {
	replace latex_table1 = latex_table1 + " & " + `var'
	}
replace latex = subinstr(latex, "& .", "& ", .)
replace latex_table1 = latex_table1 + " \\"
outsheet latex_table1 using "tables/TableB3.tex", noquote nonames replace


* End
